package com.wings4.school.academicconfiguration
import com.wings4.school.exam.ExamTermResult
import com.wings4.school.exam.ExamTypeResult
 class AcademicSection {
    String name;
    Date createDate;
    Date modifiedDate;
    String status;
//    AcademicClasses academicClasses;

    static hasMany = [academicClass:AcademicClasses,examTermResult:ExamTermResult,examTypeResult:ExamTypeResult] ;

    static belongsTo = [AcademicClasses] ;

    static mapping = {
        createDate(sqlType: 'date') ;
        modifiedDate(sqlType: 'date');
    }

    static constraints = {
        status(nullable: true);
        modifiedDate(nullable: true);
        createDate(nullable: true);
//        academicClasses(nullable: true);
    }
}
